package sequences;

/**
 * A sequence of characters based on the XOR function.
 * 
 * @author John Schaeffer
 *
 */
public class XORSequence implements CharSequence {

    private int time = 0;
    
    public char nextChar() {
        
        char rtn = (char)(time ^ 'A');
        
        time++;
        
        return (char)(rtn % 26 + 'A');
    }

}
